package com.tjbank.cssys.web.service.impl;

import com.tjbank.cssys.domain.CkLog;
import com.tjbank.cssys.repository.CkLogMapper;
import com.tjbank.cssys.web.service.CkLogService;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;

/*
 * Log  Service实现类
 *
 * */
@Service
public class CkLogServiceImpl implements CkLogService {
    @Resource
    private CkLogMapper ckLogMapper;

    @Override
    public PageInfo selectList(Integer page , Integer pageSize , CkLog ckLog, HttpServletRequest request) {
        PageHelper.startPage(page, pageSize);
        List<CkLog> ckLogs = ckLogMapper.selectList(ckLog);
        PageInfo<CkLog> pageInfo = new PageInfo<>(ckLogs);
        return pageInfo;
    }
    @Override
    public boolean addInsert(CkLog ckLog) throws RuntimeException {

        boolean b = ckLogMapper.addInsert(ckLog);
        return b;
    }

    @Override
    public int insertUseBatch(List<CkLog> listCkLog) throws RuntimeException {
        return 0;
    }

    @Override
    public int deleteByPrimaryLogId(Integer LogId) throws RuntimeException {
        return 0;
    }

    @Override
    public int updateByPrimaryKeySelective(Integer LogId) throws RuntimeException {
        return 0;
    }

    @Override
    public CkLog selectByPrimaryKey(CkLog ckLog) throws RuntimeException {
        return null;
    }
}
